package main
import "fmt"
// common.js  require + module.exports
// es6  import + export default 
// type ? js  弱类型语言 动态语言
// type 自定义类型  class 关键字
type Books struct{
	title string
	author string
	subject string
	book_id int 
}
func main(){
	// fmt.Println(Books{"go语言","google","现代c",123});
	// 面向对象
	// fmt.Println(Books{title:"go语言",author:"google",subject:"现代c",book_id:12334});
	// fmt.Println(Books{title:"go语言",author:"google"})
	var book1 Books
	var book2 Books
	book1.title="go语言"
	book1.author="google"
	book1.subject = "go 是现在的c语言"
	book1.book_id = 1234 
	book2.title="python"
	book2.author="鬼叔"
	book2.subject = " AI语言"
	book2.book_id = 2345 
	fmt.Printf("book1 title: %s\n",book1.title);
	fmt.Printf("book1 author: %s\n",book1.author);
	fmt.Printf("book1 subject: %s\n",book1.subject);
	fmt.Printf("book1 book_idbook_id: %d\n",book1.book_id);
}